package org.jeecg.modules.demo.issuingrecords.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.issuingrecords.entity.IssuingRecords;
import org.jeecg.modules.demo.issuingrecords.mapper.IssuingRecordsMapper;
import org.jeecg.modules.demo.issuingrecords.service.IIssuingRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description: 发卡记录
 * @Author: jeecg-boot
 * @Date: 2022-01-07
 * @Version: V1.0
 */
@Service
public class IssuingRecordsServiceImpl extends ServiceImpl<IssuingRecordsMapper, IssuingRecords> implements IIssuingRecordsService {

    @Autowired
    private IssuingRecordsMapper issuingRecordsMapper;

    @Override
    public int countMemVip(String recordId) {
        return issuingRecordsMapper.countMemVip(recordId);
    }

    @Override
    public int countMemReciveVip(String recordId) {
        return issuingRecordsMapper.countMemReciveVip(recordId);
    }

    @Override
    public int countMemShareVip(String recordId) {
        return issuingRecordsMapper.countMemShareVip(recordId);
    }

    @Override
    public String getShareMemeberIds(String recordId) {
        return issuingRecordsMapper.getShareMemeberIds(recordId);
    }

    @Override
    public List<Map> listMemVip(String recordId, String name, String phone, Integer pageNo, Integer pageSize) {
        return issuingRecordsMapper.listMemVip(recordId, name, phone, pageNo, pageSize);
    }

    @Override
    public List<Map> listMemReciveVip(List<String> ids, String name, String phone, Integer pageNo, Integer pageSize) {
        return issuingRecordsMapper.listMemReciveVip(ids, name, phone, pageNo, pageSize);
    }

    @Override
    public List<Map> listMemShareVip(String recordId, String name, String phone, Integer pageNo, Integer pageSize) {
        return issuingRecordsMapper.listMemShareVip(recordId, name, phone, pageNo, pageSize);
    }

    @Override
    public Integer countVipEx(String recordId, String name, String phone) {
        return issuingRecordsMapper.countVipEx(recordId, name, phone);
    }

    @Override
    public Integer countReciveVipEx(List<String> ids, String name, String phone) {
        return issuingRecordsMapper.countReciveVipEx(ids, name, phone);
    }

    @Override
    public Integer countShareVipEx(String recordId, String name, String phone) {
        return issuingRecordsMapper.countShareVipEx(recordId, name, phone);
    }

    @Override
    public List<Map> listDrawRecord(@Param("storeId") String storeId, @Param("issuingId") String issuingId, String name, String phone, String enterStoreStatus, Integer pageNo, Integer pageSize) {

        return issuingRecordsMapper.listDrawRecord(storeId, issuingId, name, phone, enterStoreStatus, pageNo, pageSize);
    }

    @Override
    public int countDrawRecord(@Param("storeId") String storeId, @Param("issuingId") String issuingId, String name, String phone, String enterStoreStatus) {
        return issuingRecordsMapper.countDrawRecord(storeId, issuingId, name, phone, enterStoreStatus);
    }

}
